﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace dasBlog.Storage
{
    [DataContract(Namespace = Names.DataContractNamespace)]
    [XmlType(Namespace = Names.DataContractNamespace)]
    [XmlRoot(Namespace = Names.DataContractNamespace)]
    public class AuthorDescription
    {
        [DataMember(EmitDefaultValue = false), XmlElement]
        public string Url { get; set; }
        [DataMember(EmitDefaultValue = false), XmlElement]
        public string DisplayName { get; set; }
        [DataMember(EmitDefaultValue = false), XmlElement]
        public string Email { get; set; }

        public AuthorDescription()
        {
            Url = "anonymous";
            DisplayName = "Anonymous";
            Email = "anonymous@example.org";
        }
    }


}
